package us.mooresr.webtroopmanager.client.ui;

import java.util.ArrayList;
import java.util.List;

import us.mooresr.webtroopmanager.shared.EventDriverSummary;
import us.mooresr.webtroopmanager.shared.PersonSummary;
import us.mooresr.webtroopmanager.shared.Privilege;
import us.mooresr.webtroopmanager.shared.VehicleSummary;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface EventDriversView extends IsWidget {
	void setPresenter(Presenter presenter);
	void setInitialDrivers(List<EventDriverSummary> drivers);
	void setInitialVehicles(List<VehicleSummary> vehicles);
	void setInitialPeople(List<PersonSummary> people);

	
	public interface Presenter {
		void goTo(Place place);		
		Long getEventId();
		void storeEventDrivers(ArrayList<EventDriverSummary> drivers);
		void refreshLists();
		Boolean isAllowed(Privilege p, Long object);
	}

}
